module.exports = mongoose => {
  const RelationSchema = new mongoose.Schema({
    source: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
    target: { type: mongoose.Schema.Types.ObjectId, ref: 'User' },
    description: { type: String  },
  });

  return mongoose.model('Relation', RelationSchema);
}